package dreampack.tool;

public class ResourceTool {
	/*
	 * 主要用于合成图片地址
	 */
	public static String getPicPath(String simplePath, String picType) {
		if (null == simplePath || "" == simplePath)
			simplePath = "/picture/htmpic/default_headimage.jpg";
		int pos = simplePath.lastIndexOf(".");
		StringBuffer sb = new StringBuffer(simplePath);
		sb.insert(pos, "_" + picType);
		return sb.toString();
	}
}

